package com.weibo.service.impl;

import java.util.List;

import com.weibo.dao.IFavouriteDao;
import com.weibo.pojo.Tweibo;
import com.weibo.service.IFavouriteService;

public class FavouriteServiceImpl implements IFavouriteService {
	
	private IFavouriteDao favouriteDao;

	public IFavouriteDao getFavouriteDao() {
		return favouriteDao;
	}

	public void setFavouriteDao(IFavouriteDao favouriteDao) {
		this.favouriteDao = favouriteDao;
	}

	@Override
	public void deleteFavourite(Integer colId) {
		// TODO Auto-generated method stub
		favouriteDao.deleteFavourite(colId);
	}

	@Override
	public List<Tweibo> getFavouriteWeiboList(Integer userId) {
		// TODO Auto-generated method stub
		return favouriteDao.getFavouriteWeiboList(userId);
	}

	@Override
	public void setFavourite(Integer userId, Integer weiboId) {
		// TODO Auto-generated method stub
		favouriteDao.setFavourite(userId, weiboId);
	}

}
